#include "mainwindow.h"
#include "ui_mainwindow.h"
#include"pushbutton.h"
#include"canvass.h"
#include"mainwindow1.h"
#include"QLineEdit"
#include <QFileDialog>
#include<QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QMessageBox *message=new QMessageBox(QMessageBox::Warning,"Information","使用手册：1.点击create产生地铁信息窗口；2.输入地铁站名，即可以得到最短路径，路线以及其地图表示；3.点击空白键查找后再点击即可删除地图上的路线。",QMessageBox::Yes|QMessageBox::No,NULL);
    aa=new myQGV();

    this->setWindowFlags(Qt::FramelessWindowHint);

//    MainWindow1 *aa1=new MainWindow1();
    connect(ui->a1,&QPushButton::clicked,this,&MainWindow::showMinimized);
    connect(ui->a3,&QPushButton::clicked,this,&MainWindow::showMaximized);
    connect(ui->a2,&QPushButton::clicked,this,&MainWindow::close);

   connect(ui->pushButton,&QPushButton::clicked,aa,&myQGV::show);
connect(ui->pushButton_3, &QPushButton::clicked, this,&MainWindow::openfile);
connect(ui->pushButton_2, &QPushButton::clicked, message,&QMessageBox::show);

}///






void MainWindow::openfile()
{
    QFileDialog::getOpenFileName();
}
///

